package com.zwh.common.exception;

/**
 * @Author zwh
 * @Date 2019/6/22 12:08
 **/
public class OperationException extends Exception {
    private static final long serialVersionUID = 1L;
    private Integer operationStatus;

    public OperationException(String arg0) {
        super(arg0);
    }

    public static OperationException message(String message) {
        return new OperationException(message);
    }

    public OperationException(String message, Throwable cause) {
        super(message, cause);
    }

    public OperationException(String arg0, int operationStatus) {
        super(arg0);
        this.operationStatus = operationStatus;
    }

    public Integer getOperationStatus() {
        return this.operationStatus;
    }

    public void setOperationStatus(Integer operationStatus) {
        this.operationStatus = operationStatus;
    }
}
